﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Catering_Rules
{
    public partial class BadOutBoxInfo
    {
        private readonly Catering_Operation.BadOutBoxInfo dal = new Catering_Operation.BadOutBoxInfo();
        public BadOutBoxInfo() { }

        /// <summary>
        /// 添加发送失败表信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool AddBadOutBoxInfo(Catering_Model.BadOutBoxInfo model)
        {
            return dal.AddBadOutBoxInfo(model);
        }

        /// <summary>
        /// 删除一条发送失败表信息
        /// </summary>
        public bool DeleteBadOutBoxInfo(int ID)
        {
            return dal.DeleteBadOutBoxInfo(ID);
        }

        /// <summary>
        /// 批量删除发送失败表信息数据
        /// </summary>
        /// <param name="whereClause">删除条件</param>
        /// <returns></returns>
        public bool DeleteBadOutBoxInfoList(string whereClause)
        {
            return dal.DeleteBadOutBoxInfoList(whereClause);
        }

        /// <summary>
        /// 得到一个发送失败表信息对象实体
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public Catering_Model.BadOutBoxInfo GetBadOutBoxInfoModel(int ID)
        {
            return dal.GetBadOutBoxInfoModel(ID);
        }

        /// <summary>
        /// 获得发送失败表信息数据列表
        /// </summary>
        public DataSet GetBadOutBoxInfoList(string strWhere)
        {
            return dal.GetBadOutBoxInfoList(strWhere);
        }

        /// <summary>
        /// 获得发送失败表信息数据列表数量
        /// </summary>
        public int GetBadOutBoxInfoListCount(string strWhere)
        {
            return dal.GetBadOutBoxInfoListCount(strWhere);
        }
    }
}
